/** Anastasia Karpinska, 2011 */

/*----------------------------------------------------------------------------*/

#ifndef _DATA_READER_H_
#define _DATA_READER_H_

#include <string>
#include <vector>

/** Reads output from statograph and makes input data for DSS */
class DataReader
{
/*----------------------------------------------------------------------------*/

public:

/*----------------------------------------------------------------------------*/

	typedef std::vector< std::pair< double, double > > Statogram;

	typedef std::vector< Statogram > ResearchData;

/*----------------------------------------------------------------------------*/

	DataReader();

	void readData ( const std::string& _fileName );

	const std::vector< float >& getAmplitudes() const;

/*----------------------------------------------------------------------------*/

private:

/*----------------------------------------------------------------------------*/

	void readStatogram( const std::string& _fileName );

/*----------------------------------------------------------------------------*/

	ResearchData m_statogramms;

	std::vector< float > m_amplitudes;

/*----------------------------------------------------------------------------*/

};

/*----------------------------------------------------------------------------*/

#endif // _DATA_READER_H_
